package com.clear.honghefinance.biz.modules.assist_calculate_summary.converter;

import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto.CreateAssistCalculateSupplierDTO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto.UpdateAssistCalculateSupplierDTO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.entity.AssistCalculateSupplier;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.vo.GetAssistCalculateSupplierVO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.vo.ListAssistCalculateSupplierVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AssistCalculateSupplierConvertor {

    AssistCalculateSupplierConvertor INSTANCE = Mappers.getMapper(AssistCalculateSupplierConvertor.class);

    AssistCalculateSupplier convertDTOToEntity(CreateAssistCalculateSupplierDTO dto);

    AssistCalculateSupplier convertDTOToEntity(UpdateAssistCalculateSupplierDTO dto);

    List<ListAssistCalculateSupplierVO> convertEntityToVO(List<AssistCalculateSupplier> entities);

    GetAssistCalculateSupplierVO convertEntityToVO(AssistCalculateSupplier entity);
}
